<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>for 渲染字符串</title>
</head>
<body>
<div id="app">
    <div v-for="char in message">{{ char }}</div>
    <br>
    <div v-for="(char, index) in message">{{ index }} {{ char }}</div>
</div>

<script src="../../../../../js/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                message: "Hello, World!",
            }
        },
        methods: {}
    })

    app.mount("#app")
</script>
</body>
</html>